//订单接口模块

// 1.引入工具函数
import request from '@/utils/request'

// 获取订单列表
export const getOrderListReq = params => {
  //返回axios接口调用结果
  return request({
    method: 'get',
    url: '/order/list',
    params,
  })
}

//首页订单数据
export const getTotalDataReq = () => {
  //返回axios接口调用结果
  return request({
    method: 'get',
    url: '/order/totaldata',
  })
}
//订单报表数据
export const orderTotalReq = params => {
  //返回axios接口调用结果
  return request({
    method: 'get',
    url: '/order/ordertotal',
    params,
  })
}
